using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._BusinessAnalystTools._TargetMarketing
{
    /// <summary>
    /// <para>Generate Target Group Layer</para>
    /// <para>Generates a layer that identifies geographies that contain selected segments and categorized groups based on targets.</para>
    /// <para>生成一个图层，用于标识包含所选区段的地理位置，并根据目标对组进行分类。</para>
    /// </summary>    
    [DisplayName("Generate Target Group Layer")]
    public class GenerateTargetGroupLayer : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public GenerateTargetGroupLayer()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_geography_level">
        /// <para>Geography Level</para>
        /// <para>The geography level that will be used to define the target layer.</para>
        /// <para>将用于定义目标图层的地理级别。</para>
        /// </param>
        /// <param name="_segmentation_base">
        /// <para>Segmentation Base</para>
        /// <para>The segmentation base for the profile being created. Available options are provided by the segmentation dataset in use.</para>
        /// <para>要创建的配置文件的分段基础。可用选项由正在使用的分段数据集提供。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Feature Class</para>
        /// <para>The output feature class for the target layer.</para>
        /// <para>目标图层的输出要素类。</para>
        /// </param>
        /// <param name="_target_group">
        /// <para>Target Group</para>
        /// <para>A user-created group of targets. This is used if the dataset supports target groups.</para>
        /// <para>用户创建的目标组。如果数据集支持目标组，则使用此选项。</para>
        /// </param>
        public GenerateTargetGroupLayer(object _geography_level, object _segmentation_base, object _out_feature_class, object _target_group)
        {
            this._geography_level = _geography_level;
            this._segmentation_base = _segmentation_base;
            this._out_feature_class = _out_feature_class;
            this._target_group = _target_group;
        }
        public override string ToolboxName => "Business Analyst Tools";

        public override string ToolName => "Generate Target Group Layer";

        public override string CallName => "ba.GenerateTargetGroupLayer";

        public override List<string> AcceptEnvironments => ["baDataSource", "extent", "workspace"];

        public override object[] ParameterInfo => [_geography_level, _segmentation_base, _out_feature_class, _target_group, _boundary_layer];

        /// <summary>
        /// <para>Geography Level</para>
        /// <para>The geography level that will be used to define the target layer.</para>
        /// <para>将用于定义目标图层的地理级别。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Geography Level")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _geography_level { get; set; }


        /// <summary>
        /// <para>Segmentation Base</para>
        /// <para>The segmentation base for the profile being created. Available options are provided by the segmentation dataset in use.</para>
        /// <para>要创建的配置文件的分段基础。可用选项由正在使用的分段数据集提供。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Segmentation Base")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _segmentation_base { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para>The output feature class for the target layer.</para>
        /// <para>目标图层的输出要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Target Group</para>
        /// <para>A user-created group of targets. This is used if the dataset supports target groups.</para>
        /// <para>用户创建的目标组。如果数据集支持目标组，则使用此选项。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Target Group")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _target_group { get; set; }


        /// <summary>
        /// <para>Boundary Layer</para>
        /// <para>The boundary that determines the layer extent.</para>
        /// <para>确定图层范围的边界。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Boundary Layer")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _boundary_layer { get; set; } = null;


        public GenerateTargetGroupLayer SetEnv(object extent = null, object workspace = null)
        {
            base.SetEnv(extent: extent, workspace: workspace);
            return this;
        }

    }

}